package com.qiguliuxing.dts.core;

import com.qiguliuxing.dts.core.util.bcrypt.BCryptPasswordEncoder;

public class MIma {

    public static void main(String[] args) {
        String pass = "admin";
        BCryptPasswordEncoder bcryptPasswordEncoder = new BCryptPasswordEncoder();
        String hashPass = bcryptPasswordEncoder.encode(pass);
        System.out.println(hashPass);

        boolean flag = bcryptPasswordEncoder.matches("admin", hashPass);
        System.out.println(flag);
    }
}
